package jpa.entitys.promis.sales;

import java.io.Serializable;

import javax.persistence.*;

import promis.utility.CommonService;

import java.math.BigDecimal;
import java.util.Date;

import jpa.entitys.common.CommonEntity;


/**
 * The persistent class for the XFR_OF_OWNERSHIP database table.
 * 
 */
@Entity
@Table(name="XFR_OF_OWNERSHIP")
@NamedQueries({
    @NamedQuery(name = "XfrOfOwnership.findAll", query = " SELECT c FROM XfrOfOwnership c "),
    @NamedQuery(name = "XfrOfOwnership.findById", query = " SELECT c FROM XfrOfOwnership c WHERE c.id = :Id "),
    @NamedQuery(name = "XfrOfOwnership.findByStaging", query = " SELECT c FROM XfrOfOwnership c WHERE c.syncIsstaging = :syncIsstaging")
})
public class XfrOfOwnership extends CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private XfrOfOwnershipPK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="ADJUST_AMOUNT")
	private BigDecimal adjustAmount;

	@Column(name="BUILDING_PHASE_CODE")
	private String buildingPhaseCode;

	@Column(name="BUYER_TRANSFER_AMT")
	private BigDecimal buyerTransferAmt;

	@Column(name="CHARGE_TEMP_ID")
	private String chargeTempId;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CONFIRM_DATE")
	private Date confirmDate;

	@Column(name="CONTRACT_FINAL_VALUE")
	private BigDecimal contractFinalValue;

	@Column(name="CONTRACT_VALUE_ADJUSTMENT")
	private BigDecimal contractValueAdjustment;

	@Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(name="CUSTOMER_CODE")
	private String customerCode;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="DATE_TRANSFER")
	private Date dateTransfer;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="DELIVERY_DATE")
	private Date deliveryDate;

	@Column(name="DEV_TRANSFER_AMT")
	private BigDecimal devTransferAmt;

	@Column(name="DOC_TEMP_ID")
	private String docTempId;

	@Column(name="FINAL_AREA")
	private BigDecimal finalArea;

	@Column(name="FINAL_PRICE_PER_SQW")
	private BigDecimal finalPricePerSqw;

	@Column(name="FLAG_PRINT")
	private String flagPrint;

	@Column(name="FLOOR_ZONE_CODE")
	private String floorZoneCode;

	@Column(name="FURNITURE_AMOUNT")
	private BigDecimal furnitureAmount;

	@Column(name="FURNITURE_CHARGE_CODE")
	private String furnitureChargeCode;

	@Column(name="INTEREST_LOAN")
	private BigDecimal interestLoan;

	@Column(name="LAST_UPDATED_BY")
	private String lastUpdatedBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPDATED_ON")
	private Date lastUpdatedOn;

	@Column(name="LINK_FILE_ID")
	private BigDecimal linkFileId;

	@Column(name="LOAN_AMOUNT")
	private BigDecimal loanAmount;

	private String narration;

	@Column(name="NET_APPRAISAL")
	private BigDecimal netAppraisal;

	@Column(name="NET_UNIT_SALE_AMOUNT")
	private BigDecimal netUnitSaleAmount;

	@Column(name="ORIGINAL_AREA")
	private BigDecimal originalArea;

	@Column(name="ORIGINAL_PRICE")
	private BigDecimal originalPrice;

	@Column(name="PRINT_COUNT")
	private BigDecimal printCount;

	private String project;

	@Column(name="PROPERTY_TYPE_CODE")
	private String propertyTypeCode;

	@Column(name="REGISTERED_PROPERTY_ID")
	private String registeredPropertyId;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="REGISTRATION_DATE")
	private Date registrationDate;

	@Column(name="RENOVATION_AMOUNT")
	private BigDecimal renovationAmount;

	private String status;

	@Column(name="SYNC_CREATEDBY")
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY")
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO")
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSTAGING")
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC")
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY")
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="TEMPLATE_ID")
	private String templateId;

	@Column(name="TITLE_DEED_NO")
	private String titleDeedNo;

	@Column(name="TRANSFER_AMOUNT")
	private BigDecimal transferAmount;

	@Column(name="TRANSFER_AT")
	private String transferAt;

	@Column(name="TRANSFER_DISCOUNT")
	private BigDecimal transferDiscount;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="TRANSFER_DUE_DATE")
	private Date transferDueDate;

	@Column(name="TRANSFER_NET_AMOUNT")
	private BigDecimal transferNetAmount;

	@Column(name="TRANSFER_REVISION")
	private BigDecimal transferRevision;

	@Column(name="UNIT_NUMBER")
	private String unitNumber;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="VOUCHER_DATE")
	private Date voucherDate;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="WARRANTY_EFFECTIVE_DATE")
	private Date warrantyEffectiveDate;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="WARRANTY_EFFECTIVE_DATE_TO")
	private Date warrantyEffectiveDateTo;

	@Column(name="WARRANTY_TEMP_ID")
	private String warrantyTempId;
	
	@Column(name="IS_INTERFACE")
	private String isInterface;

	public String getIsInterface() {
		return isInterface;
	}

	public void setIsInterface(String isInterface) {
		this.isInterface = isInterface;
	}

    public XfrOfOwnership() {
    }

	public XfrOfOwnershipPK getId() {
		return this.id;
	}

	public void setId(XfrOfOwnershipPK id) {
		this.id = id;
	}
	
	public BigDecimal getAdjustAmount() {
		return this.adjustAmount;
	}

	public void setAdjustAmount(BigDecimal adjustAmount) {
		this.adjustAmount = adjustAmount;
	}

	public String getBuildingPhaseCode() {
		return this.buildingPhaseCode;
	}

	public void setBuildingPhaseCode(String buildingPhaseCode) {
		this.buildingPhaseCode = buildingPhaseCode;
	}

	public BigDecimal getBuyerTransferAmt() {
		return this.buyerTransferAmt;
	}

	public void setBuyerTransferAmt(BigDecimal buyerTransferAmt) {
		this.buyerTransferAmt = buyerTransferAmt;
	}

	public String getChargeTempId() {
		return this.chargeTempId;
	}

	public void setChargeTempId(String chargeTempId) {
		this.chargeTempId = chargeTempId;
	}

	public Date getConfirmDate() {
		return this.confirmDate;
	}

	public void setConfirmDate(Date confirmDate) {
		this.confirmDate = confirmDate;
	}

	public BigDecimal getContractFinalValue() {
		return this.contractFinalValue;
	}

	public void setContractFinalValue(BigDecimal contractFinalValue) {
		this.contractFinalValue = contractFinalValue;
	}

	public BigDecimal getContractValueAdjustment() {
		return this.contractValueAdjustment;
	}

	public void setContractValueAdjustment(BigDecimal contractValueAdjustment) {
		this.contractValueAdjustment = contractValueAdjustment;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getCustomerCode() {
		return this.customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public Date getDateTransfer() {
		return this.dateTransfer;
	}

	public void setDateTransfer(Date dateTransfer) {
		this.dateTransfer = dateTransfer;
	}

	public Date getDeliveryDate() {
		return this.deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public BigDecimal getDevTransferAmt() {
		return this.devTransferAmt;
	}

	public void setDevTransferAmt(BigDecimal devTransferAmt) {
		this.devTransferAmt = devTransferAmt;
	}

	public String getDocTempId() {
		return this.docTempId;
	}

	public void setDocTempId(String docTempId) {
		this.docTempId = docTempId;
	}

	public BigDecimal getFinalArea() {
		return this.finalArea;
	}

	public void setFinalArea(BigDecimal finalArea) {
		this.finalArea = finalArea;
	}

	public BigDecimal getFinalPricePerSqw() {
		return this.finalPricePerSqw;
	}

	public void setFinalPricePerSqw(BigDecimal finalPricePerSqw) {
		this.finalPricePerSqw = finalPricePerSqw;
	}

	public String getFlagPrint() {
		return this.flagPrint;
	}

	public void setFlagPrint(String flagPrint) {
		this.flagPrint = flagPrint;
	}

	public String getFloorZoneCode() {
		return this.floorZoneCode;
	}

	public void setFloorZoneCode(String floorZoneCode) {
		this.floorZoneCode = floorZoneCode;
	}

	public BigDecimal getFurnitureAmount() {
		return this.furnitureAmount;
	}

	public void setFurnitureAmount(BigDecimal furnitureAmount) {
		this.furnitureAmount = furnitureAmount;
	}

	public String getFurnitureChargeCode() {
		return this.furnitureChargeCode;
	}

	public void setFurnitureChargeCode(String furnitureChargeCode) {
		this.furnitureChargeCode = furnitureChargeCode;
	}

	public BigDecimal getInterestLoan() {
		return this.interestLoan;
	}

	public void setInterestLoan(BigDecimal interestLoan) {
		this.interestLoan = interestLoan;
	}

	public String getLastUpdatedBy() {
		return this.lastUpdatedBy;
	}

	public void setLastUpdatedBy(String lastUpdatedBy) {
		this.lastUpdatedBy = lastUpdatedBy;
	}

	public Date getLastUpdatedOn() {
		return this.lastUpdatedOn;
	}

	public void setLastUpdatedOn(Date lastUpdatedOn) {
		this.lastUpdatedOn = lastUpdatedOn;
	}

	public BigDecimal getLinkFileId() {
		return this.linkFileId;
	}

	public void setLinkFileId(BigDecimal linkFileId) {
		this.linkFileId = linkFileId;
	}

	public BigDecimal getLoanAmount() {
		return this.loanAmount;
	}

	public void setLoanAmount(BigDecimal loanAmount) {
		this.loanAmount = loanAmount;
	}

	public String getNarration() {
		return this.narration;
	}

	public void setNarration(String narration) {
		this.narration = narration;
	}

	public BigDecimal getNetAppraisal() {
		return this.netAppraisal;
	}

	public void setNetAppraisal(BigDecimal netAppraisal) {
		this.netAppraisal = netAppraisal;
	}

	public BigDecimal getNetUnitSaleAmount() {
		return this.netUnitSaleAmount;
	}

	public void setNetUnitSaleAmount(BigDecimal netUnitSaleAmount) {
		this.netUnitSaleAmount = netUnitSaleAmount;
	}

	public BigDecimal getOriginalArea() {
		return this.originalArea;
	}

	public void setOriginalArea(BigDecimal originalArea) {
		this.originalArea = originalArea;
	}

	public BigDecimal getOriginalPrice() {
		return this.originalPrice;
	}

	public void setOriginalPrice(BigDecimal originalPrice) {
		this.originalPrice = originalPrice;
	}

	public BigDecimal getPrintCount() {
		return this.printCount;
	}

	public void setPrintCount(BigDecimal printCount) {
		this.printCount = printCount;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getPropertyTypeCode() {
		return this.propertyTypeCode;
	}

	public void setPropertyTypeCode(String propertyTypeCode) {
		this.propertyTypeCode = propertyTypeCode;
	}

	public String getRegisteredPropertyId() {
		return this.registeredPropertyId;
	}

	public void setRegisteredPropertyId(String registeredPropertyId) {
		this.registeredPropertyId = registeredPropertyId;
	}

	public Date getRegistrationDate() {
		return this.registrationDate;
	}

	public void setRegistrationDate(Date registrationDate) {
		this.registrationDate = registrationDate;
	}

	public BigDecimal getRenovationAmount() {
		return this.renovationAmount;
	}

	public void setRenovationAmount(BigDecimal renovationAmount) {
		this.renovationAmount = renovationAmount;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getTemplateId() {
		return this.templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}

	public String getTitleDeedNo() {
		return this.titleDeedNo;
	}

	public void setTitleDeedNo(String titleDeedNo) {
		this.titleDeedNo = titleDeedNo;
	}

	public BigDecimal getTransferAmount() {
		return this.transferAmount;
	}

	public void setTransferAmount(BigDecimal transferAmount) {
		this.transferAmount = transferAmount;
	}

	public String getTransferAt() {
		return this.transferAt;
	}

	public void setTransferAt(String transferAt) {
		this.transferAt = transferAt;
	}

	public BigDecimal getTransferDiscount() {
		return this.transferDiscount;
	}

	public void setTransferDiscount(BigDecimal transferDiscount) {
		this.transferDiscount = transferDiscount;
	}

	public Date getTransferDueDate() {
		return this.transferDueDate;
	}

	public void setTransferDueDate(Date transferDueDate) {
		this.transferDueDate = transferDueDate;
	}

	public BigDecimal getTransferNetAmount() {
		return this.transferNetAmount;
	}

	public void setTransferNetAmount(BigDecimal transferNetAmount) {
		this.transferNetAmount = transferNetAmount;
	}

	public BigDecimal getTransferRevision() {
		return this.transferRevision;
	}

	public void setTransferRevision(BigDecimal transferRevision) {
		this.transferRevision = transferRevision;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public Date getVoucherDate() {
		return this.voucherDate;
	}

	public void setVoucherDate(Date voucherDate) {
		this.voucherDate = voucherDate;
	}

	public Date getWarrantyEffectiveDate() {
		return this.warrantyEffectiveDate;
	}

	public void setWarrantyEffectiveDate(Date warrantyEffectiveDate) {
		this.warrantyEffectiveDate = warrantyEffectiveDate;
	}

	public Date getWarrantyEffectiveDateTo() {
		return this.warrantyEffectiveDateTo;
	}

	public void setWarrantyEffectiveDateTo(Date warrantyEffectiveDateTo) {
		this.warrantyEffectiveDateTo = warrantyEffectiveDateTo;
	}

	public String getWarrantyTempId() {
		return this.warrantyTempId;
	}

	public void setWarrantyTempId(String warrantyTempId) {
		this.warrantyTempId = warrantyTempId;
	}

}